package com.ssm.server.user.dao;

import com.ssm.server.user.model.PrizeTicket;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangyibo
 */
@Repository
public interface PrizeTicketDao {
    public List<PrizeTicket> getPrizeTicketByUsers(@Param("state") int state,@Param("userId") int userId, @Param("countSize") int countSize,
			@Param("pageCount") int pageCount);
    public List<PrizeTicket> getPrizeTicketByUser(int userId);
    public void updatePrizeTicketState(int ticketId);
    public PrizeTicket getPrizeTicketById(int ticketId);
    public void seavePrizeTicket(PrizeTicket prizeTicket);
    public void updatePrizeTicketStateByTicketId(PrizeTicket prizeTicket);
    public void savePrizeTicketByInvite(PrizeTicket prizeTicket);

    
}
